.post-operation {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: var(--gap-divs) var(--edge-lr);
}

.toggle-new span {
    transition: .2s;
}

.new-btn:checked ~ .toggle-new .fr, .new-btn:not(:checked) ~ .toggle-new .me {
    font-size: .75rem;
    font-weight: var(--font-weight-title);
}

.new-btn:checked ~ .toggle-new .fr:after, .new-btn:not(:checked) ~ .toggle-new .me:after {
    content: "最新动态";
}

.new-btn:not(:checked) ~ .toggle-new .fr:before, .new-btn:checked ~ .toggle-new .me:before {
    content: "切换到";
}

.toggle-new {
    display: flex;
    font-size: var(--font-size-small);
    width: fit-content;
}

.new-article {
    gap: 0;
    justify-content: space-between;
    border-radius: var(--radius);
    animation: var(--animation);
    animation-delay: .5s;
    z-index: 2;
}


.new-article ul {
    display: grid;
    gap: 1.25em;
    grid: auto/repeat(2, 1fr);
    transition: .5s;
}

.new-article li {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: var(--font-size-medium);
    --font-alpha: .6;
}

:where(.new-article ul.me) li .post-time:before {
    font-family: 'iconfont';
    font-weight: 400;
    content: "\e693";
    line-height: 1;
}

.new-article ul.me li .post-time:before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--title-color);
    background: var(--s-bg, rgb(255 255 255 / .5));
    min-width: 2em;
    height: 2em;
    font-size: 1em;
    border-radius: 50%;
    z-index: 2;
    box-shadow: .2em .2em var(--sun-color);
}

.new-article ul.me li:hover .post-time:before {
    background: var(--sun-color);
    box-shadow: none;
}

.format-post .post-time:before {
    content: "\e620";
}

.format-video .post-time:before {
    content: "\e8af";
}

.new-article li:not(:nth-child(1)) .post-time {
    color: var(--title-color);
    gap: 0.5em;
    z-index: 1;
    align-items: center;
}

.new-entry-post {
    width: 100%;
    aspect-ratio: 5 / 3;
    overflow: hidden;
    border-radius: 1em;
    background-color: #000;
    margin: 0 0 0.5em;
}

.new-entry-post img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    transform: scale(1.1);
    transition: all .5s var(--animation-in);
}

.post-time, .post-meta {
    --font-alpha: 60%;
    display: flex;
    font-size: var(--font-size-small);
    gap: var(--gap-span);
    color: hsl(var(--font-color) / .6);
}

.post-time {
    flex: none;
    font-variant: lining-nums;
}

.line-clamp {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.new-article li:nth-child(1) .summary {
    -webkit-line-clamp: 2;
    color: hsl(var(--font-color) / .6);
}

.new-article li:not(:nth-child(1)) .summary {
    display: none;
}

.new-article li:not(:nth-child(1)) .tag-list {
    display: none;
}

.new-article li:nth-child(1) .title {
    font-size: var(--font-size-title);
    font-weight: var(--font-weight-title);
    -webkit-line-clamp: 3;
    margin: 0 0 auto;
}

.post-mark {
    display: inline-flex;
    justify-content: space-between;
    gap: 1em;
}

.post-mark .tag-list p::before {
    font-family: 'iconfont';
    content: "\e659";
    margin: 0;
}

.category a::before {
    font-family: 'iconfont';
    margin: 0 0.25em 0 0;
    content: "\e634";
}

.new-article li:is(:nth-child(1)) {
    position: relative;
    flex-direction: column;
    padding: 1em 0;
    height: 100%;
    grid-column: 1 / 3;
    overflow-x: clip;
    --font-alpha: unset;
}

.toggle-new {
    flex-direction: row;
    color: var(--title-color);
    line-height: 1;
    border-radius: 2.5em;
    border: 1px solid var(--sun-color);
    overflow: hidden;
}

.toggle-new span {
    height: 2.5em;
    margin: 0 0.5em;
    line-height: 2.5em;
    border-radius: 1em 0;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
}

.dynamic-condition {
    position: relative;
    z-index: 2;
    padding: var(--gap-divs);
    background: radial-gradient(farthest-side at 50% 0, var(--s-bg, rgb(255 255 255 / .5)), #0000);
    box-shadow: 0 -2em 3em -4em rgb(0 0 0 / 5%);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    animation: var(--animation);
    animation-delay: .5s
}

.new-btn:checked ~ .toggle-new .fr, .new-btn:not(:checked) ~ .toggle-new .me {
    font-size: unset;
    margin: 0;
    padding: 0 1em;
    background: var(--sun-color);
}

.version {
    position: absolute;
    inset: 1rem 1rem auto auto;
    z-index: 3;
}

.season-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.season-btn ~ .version-btn {
    display: none;
}

.season-btn:before {
    background: url(@/assets/theme/home/summer-version.png) 90% -10% / 30%;
}

.season-btn:before {
    position: absolute;
    pointer-events: none;
    content: "";
    width: 200%;
    height: 250%;
    background-repeat: no-repeat;
    z-index: 2;
}

.season-btn .text:after {
    content: "开启限定版本";
}

.season .season-btn .text:after {
    content: "回到标准版本";
}

.version-btn {
    text-align: right;
    cursor: pointer;
    user-select: none;
    font-size: .4rem;
    display: flex;
    align-items: center;
    line-height: 1.5;
    gap: 1em;
    padding: 0 1em;
    border: thin solid var(--sun-color);
    border-radius: 1em;
    color: var(--title-color);
    box-shadow: .25em .25em var(--sun-color);
}

.version-btn i {
    font-family: var(--font-family-slogn);
    font-size: 3em;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: thin;
    letter-spacing: -.1em;
}

@media (min-width: 1153px) {
    .dynamic-condition {
        border-radius: 50% 50% 0 0 / 30% 30% 0 0;
        margin: calc((var(--new-size)) * -1.1) calc(var(--edge-lr) - var(--gap-divs)) 0;
        pointer-events: auto;
        min-height: var(--new-size);
    }

    .new-article li:nth-child(1) {
        grid-area: 1/2/5/3;
        padding: 0 2em;
        text-align: center;
        border-inline: var(--border);
    }

    .new-article {
        display: contents;
        border-radius: 50% 50% 0 0;
        min-height: var(--new-size);
    }

    .new-article ul {
        align-items: center;
        grid: 1fr 1fr 1fr 1fr/1fr 1fr 1fr;
    }

    .new-entry-post {
        display: none;
    }

    .new-article .post-meta {
        flex: none;
        gap: 0;
        align-items: center;
        margin: 0 0 0 auto;
    }

    .new-article li:nth-child(1) .post-meta {
        margin: auto 0 0;
    }

    .version {
        top: .5rem;
    }
}

@media (max-width: 1152px) {
    .toggle-new {
        flex-direction: row;
    }

    .post-operation {
        justify-content: start;
        padding: 0 0 var(--edge-lr);
    }

    .new-article li:is(:nth-child(1)) {
        overflow-x: unset;
        overflow-y: clip;
        border: 0;
        border-bottom: var(--border);
        padding: 1em 0;
        align-items: flex-start;
    }

    .new-article li {
        flex-direction: column;
        align-items: flex-start;
    }

    .new-article .flex-ul.me li:not(:nth-child(1)) .post-time {
        --sun-color: 0;
        --title-color: hsl(var(--hue) var(--satura) 77%);
        position: absolute;
        padding: 0.5em;
        gap: 0.5rem;
    }

    .new-article .title {
        -webkit-line-clamp: 2;
    }
}
